package com.ruoyi.edh.domain;

import java.math.BigDecimal;

import com.ruoyi.common.core.domain.BaseEntity;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.AllArgsConstructor;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.SearchEntity;

import javax.validation.constraints.DecimalMin;
import javax.validation.constraints.NotNull;

/**
 * 易订货-商品规格对象 edh_goods_specifications
 * 
 * @author xxx
 * @date 2020-09-02
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@ApiModel("易订货-商品规格")
public class EdhGoodsSpecifications extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键id */
    @ApiModelProperty("${comment}")
    private Long id;

    /** 商品id */
    @Excel(name = "商品id")
    @ApiModelProperty("商品id")
    @NotNull
    private Long goodsId;

    /** 规格 */
    @Excel(name = "规格")
    @ApiModelProperty("规格")
    @NotNull
    private String specifications;

    /** 市场价(零售价) */
    @Excel(name = "市场价(零售价)")
    @ApiModelProperty("市场价(零售价)")
    @DecimalMin("0")
    private BigDecimal marketPrice;

    /** 本店价(供货价) */
    @Excel(name = "本店价(供货价)")
    @ApiModelProperty("本店价(供货价)")
    @DecimalMin("0")
    private BigDecimal shopPrice;

    /** 成本价 */
    @Excel(name = "成本价")
    @ApiModelProperty("成本价")
    @DecimalMin("0")
    private BigDecimal costPrice;

    /** 佣金 */
    @Excel(name = "佣金")
    @ApiModelProperty("佣金")
    private BigDecimal commission;

    /** 库存数量 */
    @Excel(name = "库存数量")
    @ApiModelProperty("库存数量")
    @DecimalMin("1")
    private Integer storeCount;

    /** 商品销量 */
    @Excel(name = "商品销量")
    @ApiModelProperty("商品销量")
    private Integer salesSum;

    /** 重量（gg） */
    @Excel(name = "重量", readConverterExp = "g=g")
    @ApiModelProperty("重量")
    private BigDecimal weight;

    /** 是否删除 0否1是 */
    @ApiModelProperty("重量")
    private Integer delFlag;


}
